package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@JsonIgnoreProperties("handler")
public class User extends BaseDomain{
    /*
    * 关于性别的常量
    * */
    public static final Integer GENDER_NONE = 0; //保密
    public static final Integer GENDER_MALE = 1; //男
    public static final Integer GENDER_FEMALE = 2; //女

    private String email;//邮件

    private String nickName;//昵称

    private String password;//密码

    private String place;//地区

    private String headImgUrl;//头像文件

    private Integer gender = GENDER_NONE;//性别

    private String coverImgUrl;//封面图片

    private String sign;//个性签名

    private int fansNum;//粉丝数

    private int watchNum;//关注数

   public String getGenderString(){
        String msg = "保密" ;
        if(gender==User.GENDER_MALE){
            msg = "男";
        }else if(gender==User.GENDER_FEMALE){
            msg = "女";
        }
        return msg ;
    }

}